package com.spzx.order.api.factory;

import com.spzx.common.core.domain.R;
import com.spzx.order.api.RemoteOrderService;
import com.spzx.order.api.domain.OrderInfo;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component
public class RemoteOrderFallbackFactory implements FallbackFactory<RemoteOrderService>{
    @Override
    public RemoteOrderService create(Throwable cause) {
        return new RemoteOrderService() {
            @Override
            public R<OrderInfo> getOrderByOrderNo(String orderNo, String inner) {
                return null;
            }
        };
    }
}
